.class Lcom/htc/android/footprints/activity/SearchActivity$2;
.super Ljava/lang/Object;
.source "SearchActivity.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/htc/android/footprints/activity/SearchActivity;->onCreateDialog(I)Landroid/app/Dialog;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/activity/SearchActivity;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/SearchActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 187
    iput-object p1, p0, Lcom/htc/android/footprints/activity/SearchActivity$2;->this$0:Lcom/htc/android/footprints/activity/SearchActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 2
    .parameter "dialog"
    .parameter "which"

    .prologue
    .line 188
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity$2;->this$0:Lcom/htc/android/footprints/activity/SearchActivity;

    #getter for: Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryIndex:I
    invoke-static {v0}, Lcom/htc/android/footprints/activity/SearchActivity;->access$200(Lcom/htc/android/footprints/activity/SearchActivity;)I

    move-result v0

    if-eq v0, p2, :cond_0

    .line 189
    iget-object v1, p0, Lcom/htc/android/footprints/activity/SearchActivity$2;->this$0:Lcom/htc/android/footprints/activity/SearchActivity;

    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity$2;->this$0:Lcom/htc/android/footprints/activity/SearchActivity;

    #getter for: Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryList:Ljava/util/ArrayList;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/SearchActivity;->access$400(Lcom/htc/android/footprints/activity/SearchActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/htc/android/footprints/vo/Category;

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    #setter for: Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryKeyword:Ljava/lang/String;
    invoke-static {v1, v0}, Lcom/htc/android/footprints/activity/SearchActivity;->access$302(Lcom/htc/android/footprints/activity/SearchActivity;Ljava/lang/String;)Ljava/lang/String;

    .line 190
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity$2;->this$0:Lcom/htc/android/footprints/activity/SearchActivity;

    #setter for: Lcom/htc/android/footprints/activity/SearchActivity;->mCategoryIndex:I
    invoke-static {v0, p2}, Lcom/htc/android/footprints/activity/SearchActivity;->access$202(Lcom/htc/android/footprints/activity/SearchActivity;I)I

    .line 191
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity$2;->this$0:Lcom/htc/android/footprints/activity/SearchActivity;

    #calls: Lcom/htc/android/footprints/activity/SearchActivity;->updateEmptyText()V
    invoke-static {v0}, Lcom/htc/android/footprints/activity/SearchActivity;->access$500(Lcom/htc/android/footprints/activity/SearchActivity;)V

    .line 192
    iget-object v0, p0, Lcom/htc/android/footprints/activity/SearchActivity$2;->this$0:Lcom/htc/android/footprints/activity/SearchActivity;

    iget-object v0, v0, Lcom/htc/android/footprints/activity/SearchActivity;->mFilter:Landroid/widget/Filter;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/SearchActivity$2;->this$0:Lcom/htc/android/footprints/activity/SearchActivity;

    iget-object v1, v1, Lcom/htc/android/footprints/activity/SearchActivity;->mSearchEdit:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Filter;->filter(Ljava/lang/CharSequence;)V

    .line 194
    :cond_0
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 195
    return-void
.end method
